package com.ruicar.afs.cloud.product.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruicar.afs.cloud.product.entity.SchemeLaunch;
import com.ruicar.afs.cloud.product.mapper.SchemeLaunchMapper;
import com.ruicar.afs.cloud.product.service.SchemeLaunchService;
import org.springframework.stereotype.Service;

/**
 * @author yaorui.zhang
 * @date 2020年5月11日19:29:51
 */
@Service
public class SchemeLaunchServiceImpl extends ServiceImpl<SchemeLaunchMapper, SchemeLaunch> implements SchemeLaunchService {

    @Override
    public SchemeLaunch getLaunchPlanById(String id) {
        return this.baseMapper.selectOne(Wrappers.<SchemeLaunch>query().lambda()
                .eq(SchemeLaunch::getId, id)
        );
    }
}
